﻿package plugin.NewSkill
{
    import com.core.*;
    import com.sh.game.consts.*;
    import com.sh.game.global.*;
    import plugin.NewSkill.control.*;
    import view.*;

    public class Skill extends FlashUIBase
    {

        public function Skill()
        {
            appendLoader(Config.getUrl("assets/images/mornui/common.swf", ResourceType.NORMAL));
            appendLoader(Config.getUrl("assets/images/mornui/skill.swf", ResourceType.NORMAL));
            return;
        }// end function

        override protected function initGUI() : void
        {
            mGUI = new SkillUIControl(this);
            return;
        }// end function

        override protected function openRefresh() : void
        {
            (mGUI as SkillUIControl).openRefresh(this.data);
            return;
        }// end function

        override public function close() : void
        {
            super.close();
            ModelProxy.change("tips", "state", "close");
            return;
        }// end function

    }
}
